import 'package:json_annotation/json_annotation.dart';

part 'menu.g.dart';

@JsonSerializable()
class Menu {
  Menu();

  List? children;
  bool? hasParent;
  late num id;
  late String menuName;
  String? perms;
  String? path;
  late num parentId;
  String? icon;
  late String type;
  num? orderNum;
  late String createTime;
  
  factory Menu.fromJson(Map<String,dynamic> json) => _$MenuFromJson(json);
  Map<String, dynamic> toJson() => _$MenuToJson(this);
}
